* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  -webkit-user-select: none; /* Chrome, Opera, Safari */
  -moz-user-select: none; /* Firefox 2+ */
  -ms-user-select: none; /* IE 10+ */
  user-select: none; /* Standard syntax */
}
*::-webkit-scrollbar {
  display: none;
}
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
body,
html {
  display: block;
  height: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}
body {
  font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "STHeitiSC-Light", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  position: static !important;
  background: #717171 url("../assets/bg.jpg") no-repeat;
  background-attachment: fixed;
  background-position: top center;
  background-size: cover;
}
ul,
ol {
  list-style-type: none;
}
b,
strong {
  font-weight: bold;
}
img {
  border: 0;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  &[disabled] {
    background-color: #f3f3f3;
    opacity: 1;
    cursor: not-allowed;
    color: #ccc;
  }
}
a {
  text-decoration: none;
  cursor: pointer;
}
a:active,
a:hover {
  outline: 0;
}
html.kw-cursor-move,
html.kw-cursor-move * {
  cursor: move !important;
}
.kw-widget-icon {
  height: 24px;
  width: 24px;
  font-size: 24px;
  display: inline-block;
  position: absolute;
  right: 10px;
}
.kw-dragging-proxy {
  position: fixed;
  pointer-events: none;
  width: 148px;
  height: 42px;
  background: rgba(0,0,0,0.6);
  text-align: left;
  padding-left: 15px;
  font-size: 12px;
  line-height: 42px;
  color: #fff;
  margin-top: -21px;
  margin-left: -75px;
  display: none;
}
.kw-dragging-mark {
  background: #ff4500;
  height: 2px;
  overflow: visible;
  position: relative;
  margin: 3px 0;
  &:before,
  &:after {
    position: absolute;
    content: '';
    display: block;
    height: 0;
    width: 0;
    border-style: solid;
    border-color: transparent;
    border-width: 4px 8px;
    top: -3px;
  }
  &:before {
    left: 0;
    border-left-color: #ff4500;
  }
  &:after {
    right: 0;
    border-right-color: #ff4500;
  }
}

.kw-remove {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 12px;
  color: #eee;
  display: none;
  cursor: pointer;
  z-index: 10;
  background: #ff5400;
  padding: 3px 2px 2px 3px;
  &:hover {
    color: #fff;
  }
}
.kw-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: move;
  z-index: 9;
  border: 1px dashed transparent;
}
html:not(.kw-cursor-move) {
  .kw-component {
    &.hover {
      >.kw-remove {
        display: block;
      }
      > .kw-overlay {
        border-style: dashed;
        border-color: #ff5400;
      }
    }
    &.active {
      > .kw-overlay {
        border-width: 1px;
        border-style: solid;
        border-color: #ff5400;
      }
    }
  }
}
.kw-wrapper {
  height: 100%;
}
.kw-component {
  margin: 15px 0;
  overflow: hidden;
  position: relative;
  &.areaactive {
    > .kw-overlay {
      border-width: 1px;
      border-style: solid;
      border-color: rgba(255,84,0,0.3);
    }
  }
  &.draging {
    pointer-events: none;
    -webkit-filter: blur(1px);
    filter: blur(1px);
    > .kw-overlay {
      border-width: 1px;
      border-color: #666;
      border-style: dashed;
      background: #ccc;
      opacity: 0.8;
    }
  }
}
.kw-component-container {
  > .kw-overlay {
    border: 1px solid #ccc;
  }
}
.kw-component-textarea {
  .kw-componentview-placeholder {
    height: 50px;
    display: inline-block;
  }
}
.kw-component-radio,
.kw-component-checkbox,
.kw-component-date {
  .icon-enter {
    position: absolute;
    font-size: 24px;
    right: 15px;
    top: 12px;
    color: #e0e0e0;
  }
  .kw-componentview-placeholder {
    position: absolute;
    right: 50px;
    top: 16px;
    color: #929292;
  }
}
.kw-component-photo {
  .icon-camera {
    position: absolute;
    font-size: 24px;
    right: 15px;
    top: 12px;
    color: #858e99;
  }
}
.kw-component-attachment {
  .icon-attachment {
    position: absolute;
    font-size: 24px;
    right: 15px;
    top: 12px;
    color: #858e99;
  }
}
.kw-component-money {
  .cnformat {
    color: #858e99;
    font-size: 14px;
    padding: 5px 15px;
  }
}
.kw-componentview {
  position: relative;
  .kw-componentview-cid {
    position: absolute;
    top: 2px;
    right: 2px;
    color: #d7dede;
    font-size: 12px;
  }
  .kw-componentview-label {
    font-size: 16px;
    color: #858e99;
    display: block;
    padding: 10px 15px;
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
  }
  > .kw-componentview-border {
    border-width: 1px 0;
    border-style: solid;
    border-color: #c8c8ca transparent;
    background: #fff;
    padding: 15px;
    white-space: nowrap;
    > .kw-componentview-label {
      display: inline-block;
      width: 5.5em;
      padding: 0 8px 0 0;
      color: #222;
    }
  }
  .kw-componentview-placeholder {
    color: #ccc;
    font-size: 15px;
    vertical-align: top;
  }
  .kw-componentview-adddetail {
    color: #008cee;
    text-align: center;
    padding: 15px;
    background: #f7f9ff;
    border-bottom: 1px solid rgba(200, 200, 202, 0.5);
    vertical-align: middle;
  }
  .kw-componentview-content {
    padding: 15px;
    color: #858e99;
  }
  .kw-componentview-area {
    min-height: 90px;
    background: #ddeff3;
    position: relative;
    .emptytip {
      position: absolute;
      left: 50%;
      top: 50%;
      white-space: nowrap;
      color: #ccc;
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
    }
  }
}
.kw-componentview-stats {
  padding: 3px 10px;
  .kw-componentview-statitem {
    color: #858e99;
    font-size: 14px;
    text-align: left;
    line-height: 20px;
    margin: 2px 0;
  }
}
.kw-componentview-tip-icon {
  border: 0;
  width: 30px;
  position: relative;
  float: right;
  top: -6px;
}
.kw-componentgroup {
  margin: 0;
  padding: 0;
  border-width: 1px 0;
  border-style: solid;
  border-color: #c8c8ca transparent;
  >.kw-component {
    padding: 0;
    margin: 0;
    background: #fff;
    .kw-componentview-border {
      border-width: 0 0 1px;
      margin-left: 15px;
      padding-left: 0;
    }
    &:last-child {
      .kw-componentview-border {
        &:last-child {
          border-width: 0;
        }
      }
    }
  }
}
.empty {
  .kw-componentgroup {
    border-width: 0;
  }
}
.kw-panel {
  position: absolute;
  overflow: auto;
}
.kw-button {
  margin: 0 5px;
  border: none;
  border-radius: 2px;
  padding: 4px 23px;
  color: #fff;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  line-height: normal;
  &.kw-button-blue {
    background: #3f9af9;
    &:hover {
      background: #2786e8;
    }
  }
  &.kw-button-green {
    background: #41b543;
    &:hover {
      background: #41b543;
    }
  }
  &.kw-button-cyan {
    background: #5db4cf;
    &:hover {
      background: #429dba;
    }
  }
}
.kw-vm {
  vertical-align: middle;
}
.kw-form {
  .kw-form-item {
    margin-bottom: 24px;
    vertical-align: top;
    zoom: 1;
    &:after {
      content: "";
      display: table;
    }
    .kw-form-item-label {
      font-weight: bold;
      vertical-align: middle;
      font-size: 12px;
      color: white;
      line-height: 1;
      padding: 10px 12px 10px 0;
      box-sizing: border-box;
      .desc {
        color: #f4f4f4;
        margin-left: 8px;
        font-weight: normal;
        opacity: 0.9;
      }
    }
    .kw-form-item-content {
      position: relative;
      line-height: 32px;
      font-size: 14px;
    }
    input,
    textarea,
    select {
      font-family: inherit;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.6);
      color: #fff;
      padding: 6px 10px;
      width: 290px;
      border-radius: 2px;
      outline: none;
      font-size: 12px;
      option {
        color: #000;
      }
    }
    input[type='checkbox'] {
      width: unset;
      margin-right: 5px;
      margin-left: 2px;
      vertical-align: middle;
    }
    span {
      color: #fff;
    }
    input::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder,
    input::-moz-placeholder,
    textarea::-moz-placeholder,
    input:-ms-input-placeholder,
    textarea:-ms-input-placeholder {
      background-color: #fff;
    }
    .kw-form-option {
      input {
        width: 200px;
      }
    }
  }
}

.kw-input-group {
  vertical-align: middle;
  line-height: normal;
  display: table;
  //width: 100%;
  border-collapse: separate;
  position: relative;
  font-size: 14px;
  top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  input {
    width: 254px !important;
    float: left;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    border: none !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .kw-input-group-append {
    width: 1px;
    white-space: nowrap;
    vertical-align: middle;
    display: table-cell;
    .kw-button {
      margin: 0;
      padding: 5px 10px;
    }
  }
}